@import "./variables";

.comm-bg {
  background: $window-background-color;
}

.wh100 {
  width: 100%;
  height: 100%;
}

.flex {
  display: flex;
}

/* 水平方向-水平垂直居中 */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 垂直方向-水平垂直居中 */
.flex-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* 水平方向-垂直居中 */
.flex-center-vertical {
  display: flex;
  align-items: center;
}

/* 垂直方向-水平居中 */
.flex-center-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 垂直方向-水平两边 */
.flex-center-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 垂直方向-水平两边 */
.flex-center-evenly {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.flex-glow {
  flex-grow: 1;
}

/* 文本最多显示两行，超出显示省略号 */
.text-maxline-3 {
  @extend .text-maxline-base;
  -webkit-line-clamp: 3
}

/* 文本最多显示两行，超出显示省略号 */
.text-maxline-2 {
  @extend .text-maxline-base;
  -webkit-line-clamp: 2
}

/* 文本最多显示一行，超出显示省略号 */
.text-maxline-1 {
  @extend .text-maxline-base;
  -webkit-line-clamp: 1;
}

.text-maxline-base {
  display: -webkit-box;
  word-break: break-all;
  text-overflow: ellipsis;
  overflow: hidden;
  /*! autoprefixer: ignore next */
  -webkit-box-orient: vertical;
}

.title-mark {
  width: 7px;
  height: 19px;
  background-color: $primary-color;
  border-radius:4px;
  margin-right: 8px;
}

.list-item {
  margin: 15px 15px 0;
  font-size: 12px;
  background: white;
  box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.clickable:active {
  opacity: 0.7;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.btn {
  height: 54px;
  padding: 0 21px;
  font-size: 28px;
  box-sizing: border-box;
  line-height: 54px;
  border-radius: 27px;
  color: #fff;
  @extend .flex-center;
  img {
    width: 26px;
    margin-right: 9px;
  }
}
.back-btn {
  background: #2D87FF;
}
.logout-btn {
  background: #FF8C38;
}